package com.jxzn.locust.config;

import java.util.Set;

import net.sf.json.processors.JsonBeanProcessorMatcher;

public class HibernateJsonBeanProcessorMatcher extends JsonBeanProcessorMatcher {

    @SuppressWarnings("rawtypes")
    @Override
    public Object getMatch(Class arg0, Set arg1) {
        if (arg0.getName().contains("EnhancerByCGLIB")) {
            return org.hibernate.proxy.HibernateProxy.class;
        }
        return DEFAULT.getMatch(arg0, arg1);
    }

}
